<template>
  <div class="about-page">
    <van-nav-bar
      title="关于我们"
      left-arrow
      @click-left="onClickLeft"
      fixed
      placeholder
      :border="false"
      :safe-area-inset-top="true"
    />
    
    <div class="about-content">
      <div class="about-card">
        <div class="logo-section">
          <img src="../assets/icon/logo@2x.png" alt="SmartEat Logo" class="logo" />
          <h2>膳小搭</h2>
          <p class="version">版本 1.0.1</p>
        </div>

        <div class="info-section">
          <p class="description">
            膳小搭是一个智能饮食管理平台，致力于为用户提供健康、便捷的饮食解决方案。
            我们通过智能算法和专业的营养知识，帮助用户实现健康饮食的目标。
          </p>
        </div>

        <div class="contact-section">
          <h3>联系我们</h3>
          <div class="contact-item">
            <van-icon name="envelop-o" />
            <span>smarteat@163.com</span>
          </div>
          <div class="contact-item">
            <van-icon name="phone-o" />
            <span>400-123-4567</span>
          </div>
        </div>

        <div class="copyright">
          © 2025 SmartEat. All rights reserved.
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const onClickLeft = () => {
  router.back()
}
</script>

<style scoped>
.about-page {
  min-height: 100vh;
  background: #f7f8fa;
}

.about-content {
  padding: 16px;
}

.about-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.logo-section {
  margin-bottom: 32px;
}

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.logo-section h2 {
  font-size: 24px;
  color: #333;
  margin: 0 0 8px;
}

.version {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.info-section {
  margin-bottom: 32px;
}

.description {
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.contact-section {
  margin-bottom: 32px;
}

.contact-section h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #666;
}

.contact-item .van-icon {
  font-size: 18px;
  color: #7c5dfa;
}

.copyright {
  color: #999;
  font-size: 12px;
}
</style> 